/*
 * This file is part of "photo-booth"
 * Copyright (c) 2018 Philipp Trenz
 *
 * For more information on the project go to
 * <https://github.com/philipptrenz/photo-booth>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

 html{
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    margin: 0;
    background: black;
}

body {
	overflow: hidden;
	width: 100vw;
	margin: 0;
	color: white;
	font-family: Roboto;
}

body > div {
	width: 100%;

}

h1, h2, h3, h4, h5 {
	text-align: center;
}

img {
	max-width: 100%;
	max-height: 100%;
	/*-webkit-filter: grayscale(100%);*/
}

button {
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	color: white;
	background-color: transparent;
    border: 3px solid white;
    padding: 10px 30px;
    text-decoration: none;
    display: block;
}

#front {
	position:fixed;
    margin: 0;

    top:0;
    left:0;

    width: 100%;
    height: 100%;

    z-index: 1;
    box-sizing: border-box;

    display: flex;
  	align-items: center;
  	justify-content: center;

  	animation: fadein 0.5s;
	animation-timing-function: ease-out;
}

#front > * {
	position:absolute;
	display: block;
    width: 100%;
    padding: 1.5vw;
    background-color: rgba(0,0,0,0.4);
}

#front > * p {
    padding: 0;
    margin-top: 1.5vw;
    margin-bottom: 0;
}

#collage {
    margin: 0;
    padding: 0.5vw;

    width: 100%;
    height: 100%;

    background: black;
    z-index: -10000;
}

#collage .img-wrapper {
    padding: 0;
}

#collage .img-wrapper img {
    padding: 0.5vw;
    -webkit-filter: brightness(80%);
}

#prompt {
	text-align: center;

	position:fixed;
    padding:0;
    margin:0;

    top:0;
    left:0;

    width: 100%;
    height: 100%;

    z-index: 1000;
    display: none;

    background: rgba(0,0,0,0.4);
    background-size: cover;
    background-repeat: no-repeat;

    display: flex;
  	align-items: center;
  	justify-content: center;
}

#collage .slideshow {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;

    background-repeat: no-repeat;
    background-position: center;

    overflow: hidden;

    /*
    transition: background-image 2s linear;
    transform: rotateZ(360deg);
    */

    display: none;
}

#prompt #preview {
	position: fixed;
    padding:0;
    margin:0;

    top:0;
    left:0;

    width: 100%;
    height: 100%;

    z-index: 10000;
    background-size: cover;
    background-repeat: no-repeat;

	animation: fadein 0.5s;
	animation-timing-function: ease-in;
}

#prompt.fadeout {
	animation: fadeout 0.5s;
	animation-timing-function: ease-out;
}

#prompt span {
    font-size: 25vw;
	position:absolute;
	display: block;
}

#prompt .loading {
	position:absolute;
}

#prompt .loading i {
	text-align: center;
	display: inline-block;
}

#prompt .error {
    font-size: 10vw;
    padding: 0 7vw;
}

#prompt .error p {
    font-size: 5vw;
}

.live{
    position: absolute; top: 0; bottom: 0; right: 0; left: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: black;
}

.fa {
	font-size: 10vw;
}

#flash {
    position: fixed;
    z-index: 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    opacity: 0;
    transition: opacity .75s ease-out;
}

#flash.flash {
    z-index: 20000;
    opacity: 1;
    transition: opacity 0s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeout {
    from { opacity: 1; }
    to   { opacity: 0; }
}
